const Login = () => import('__VIEWS__/user/Login.vue')
// import Login from '__VIEWS__/user/Login.vue'
const Register = () => import('__VIEWS__/user/Register.vue')
// import Register from '__VIEWS__/user/Register.vue'
const FindBack = () => import('__VIEWS__/user/FindBack.vue')
// import FindBack from '__VIEWS__/user/FindBack.vue'
const CreateArticle = () => import('__VIEWS__/article/CreateArticle.vue')
// import CreateArticle from '__VIEWS__/article/CreateArticle.vue'
const AmendArticle = () => import('__VIEWS__/article/AmendArticle.vue')
// import AmendArticle from '__VIEWS__/article/AmendArticle.vue'

export default [{
  path: '/login',
  name: 'Login',
  component: Login,
  meta: { title: '登入账号' },
}, {
  path: '/register',
  name: 'Register',
  component: Register,
  meta: { title: '注册账号' },
}, {
  path: '/find_back',
  name: 'FindBack',
  component: FindBack,
  meta: { title: '找回密码' },
}, {
  path: '/create_article',
  name: 'CreateArticle',
  component: CreateArticle,
  meta: { title: '创作文章' },
},{
  path: '/amend_article/:articleId',
  name: 'AmendArticle',
  component: AmendArticle,
  props: (route) => {
    return {id: route.params.articleId, articleId: route.params.articleId}
  },
  meta: { title: '修改文章' },
}]